ActionController::Routing::Routes.draw do |map|
  map.connect '', :controller => 'misc', :action => 'index'
  map.resources :users
  map.resources :sessions
  
  map.signup '/signup', :controller => 'users', :action => 'new'
  map.login '/login', :controller => 'sessions', :action => 'new'
  map.logout '/logout', :controller => 'sessions', :action => 'destroy'
  
  map.blog '/u/:sd/', :controller => 'blogs', :action => 'show'
  map.send_message '/:u_id', :controller => 'users', :action => 'send_message'
  
  map.connect ':controller/:action/:id'
end
